package com.tre.jdevtemplateboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tre.jdevtemplateboot.domain.po.SpAppOssMst;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 熊一鸣
 * @since 2023-11-15
 */
@Mapper
public interface SpAppOssMstMapper extends BaseMapper<SpAppOssMst> {

    @Select("select * from sp_app_oss_mst where app_id = #{appId}")
    List<SpAppOssMst> getListByAppId(String appId);

    @Delete("delete from sp_app_oss_mst where app_id = #{id}")
    void removeByAppId(String appId);
}
